<?php
include "fifo_common.php";


while($r=fread(STDIN,1024)){
    pcntl_signal_dispatch();
    echo 'begin writing'.PHP_EOL;

    $handle = fopen( $pipe_file, "w" );
    $frlen=fwrite( $handle, $r );
    echo 'write '.$frlen.PHP_EOL;

    pcntl_signal_dispatch();
}






